﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace Helpers.Config
{
    public class FirefoxConfig
    {
        /// <summary>
        /// 默认驱动开关，默认关
        /// </summary>
        public bool UseDriver { get; set; } = false;
        /// <summary>
        /// 驱动路径
        /// </summary>
        public string DriverPath { get; set; } = ConfigurationManager.AppSettings["GeckoDriverDirectory"];
        public string DriverName { get; set; } = ConfigurationManager.AppSettings["DriverExecutableFileName"];
        /// <summary>
        /// 无头开关，默认关
        /// </summary>
        public bool UseHeadless { get; set; } = false;
        /// <summary>
        /// 图片开关，默认开
        /// </summary>
        public bool ShowImage { get; set; } = true;
        public bool UseRandomUserAgent { get; set; } = false;
        public string UserAgent { get; set; } = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0";
        /// <summary>
        /// 用户配置，默认关
        /// </summary>
        public bool UseProfile { get; set; }
        /// <summary>
        /// 用户配置路径
        /// </summary>
        public string ProfilePath { get; set; } = ConfigurationManager.AppSettings["FirefoxProfile"];
        /// <summary>
        /// 浏览器开关，默认关
        /// </summary>
        public bool UseBrowser { get; set; } = false;
        /// <summary>
        /// 浏览器路径
        /// </summary>
        public string BrowserPath { get; set; } = ConfigurationManager.AppSettings["FirefoxBinaryPath"];
        public bool HideCommandPromptWindow { get; set; } = false;

    }
}
